.class Lcom/estrongs/android/taskmanager/i;
.super Landroid/telephony/PhoneStateListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/h;

.field private b:Landroid/telephony/ServiceState;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/h;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/i;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-direct {p0}, Landroid/telephony/PhoneStateListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onDataActivity(I)V
    .locals 3

    const-string v0, "AboutPhoneMainWrapper"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "DataActivity: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public onDataConnectionStateChanged(I)V
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/i;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0, p1}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;I)V

    return-void
.end method

.method public onServiceStateChanged(Landroid/telephony/ServiceState;)V
    .locals 1

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/i;->b:Landroid/telephony/ServiceState;

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/i;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0, p1}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;Landroid/telephony/ServiceState;)V

    return-void
.end method

.method public onSignalStrengthsChanged(Landroid/telephony/SignalStrength;)V
    .locals 5

    const v4, 0x7f070003

    const v3, 0x7f090022

    const-string v0, "AboutPhoneMainWrapper"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "SignalStrength: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/i;->b:Landroid/telephony/ServiceState;

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/i;->b:Landroid/telephony/ServiceState;

    invoke-virtual {v1}, Landroid/telephony/ServiceState;->getState()I

    move-result v1

    if-eq v0, v1, :cond_0

    const/4 v0, 0x3

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/i;->b:Landroid/telephony/ServiceState;

    invoke-virtual {v1}, Landroid/telephony/ServiceState;->getState()I

    move-result v1

    if-ne v0, v1, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/i;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/estrongs/android/taskmanager/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(I)V

    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Landroid/telephony/SignalStrength;->getCdmaDbm()I

    move-result v0

    invoke-virtual {p1}, Landroid/telephony/SignalStrength;->isGsm()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {p1}, Landroid/telephony/SignalStrength;->getGsmSignalStrength()I

    move-result v0

    :cond_2
    if-gez v0, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/i;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/estrongs/android/taskmanager/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    :cond_3
    mul-int/lit8 v1, v0, 0x2

    add-int/lit8 v1, v1, -0x71

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, " dBm "

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " asu"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/i;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/estrongs/android/taskmanager/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method
